
import React from 'react'
import { connect } from 'dva-no-router'
import { bindActionCreators } from 'redux'

import UI from '../components/sign';

class App extends React.Component {
  render() {
    return (
      <UI {...this.props}/>
    )
  }
}

const actions = {
    //删除签字
    cleanSign: () => ({type: 'sign/cleanSign'}),
    thisPressIn: (val,val2) => ({type: 'sign/thisPressIn', payload: {url: val, signWordType: val2}}),
    thisPressOut: (val, val2) => ({type: 'sign/thisPressOut', payload: {url: val, signWordType: val2}}),
    thisPhotoClose: () => ({type: 'sign/thisPhotoClose'}),
    thisPhotoOpen: (val) => ({type: 'sign/thisPhotoOpen', payload: val}),
    thisAlertClose: () => ({type: 'sign/thisAlertClose'})
}
;

const mapProps = ({sign}) => ({...sign});

const mapActions = dispatch => ({
  ...bindActionCreators({...actions}, dispatch)
});

export default connect(mapProps, mapActions)(App)